home *** CD-ROM | disk | FTP | other *** search
/ MacFormat 2001 November / macformat-109.iso / Demos / Alice Demo / demo / pak0.pk3 / scripts / water.shader < prev    next >
Encoding:
Text File  |  2000-11-20  |  6.1 KB  |  259 lines

  1. //not really blood anymore
  2. textures/liquid/blood
  3. {
  4.     cull disable
  5.     //deformVertexes wave 512 sin 0.000000 3.000000 0.000000 0.3
  6.     deformVertexes wavenormal 512 0.04 0.03 0 sin 0 1 0 .3
  7.     tessSize 128
  8.     surfaceparm nonsolid
  9.     surfaceparm trans
  10.     q3map_globaltexture
  11.     surfaceparm water
  12.     surfaceparm nolightmap    
  13.     qer_editorimage textures/common/darkblue.tga
  14.     qer_trans 0.500000
  15.     {
  16.         map textures/common/darkblue.tga
  17.         blendfunc gl_zero gl_src_color
  18.         depthwrite
  19.     }
  20.     {
  21.         map textures/effects/potears.tga        
  22.         alphagen dot .5 0        
  23.         blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA        
  24.         tcMod scale 2 2
  25.         tcGen environment
  26.     }
  27. }
  28.  
  29. textures/liquid/mercury
  30. {
  31.     cull disable
  32. //    deformVertexes wave 512 sin 0.000000 4.000000 0.000000 0.3
  33.     deformVertexes wavenormal 512 0.02 0.009 0 sin 0 1 0 .3
  34.     tessSize 128
  35.     surfaceparm nonsolid
  36.     surfaceparm trans
  37.     q3map_globaltexture
  38.     surfaceparm slime
  39.     surfaceparm nolightmap    
  40.     qer_editorimage textures/testliq/bw_top.tga
  41.     qer_trans 0.500000
  42.     {
  43.         map textures/common/darkyell.tga
  44.         blendfunc gl_zero gl_src_color
  45.         depthwrite
  46.     }
  47.     {
  48.         map textures/effects/hatter.tga        
  49.         alphagen dot .7 0        
  50.         blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA        
  51.         tcMod scale 5 5
  52.         tcGen environment
  53.     }
  54. }
  55.  
  56. // not blood anymore!
  57. // ------------------------
  58. textures/liquid/flowingblood
  59. {
  60.     qer_editorimage liquid/water1_blood.tga 
  61.      qer_trans 0.500000
  62.  
  63.     cull disable
  64.     //deformVertexes wave 64 sin 0.000000 3.000000 0.000000 0.50000
  65.     //tessSize 64
  66.     surfaceparm nonsolid
  67.     surfaceparm trans
  68.     q3map_globaltexture
  69.     surfaceparm water
  70.     surfaceparm nolightmap    
  71.     {
  72.         map textures/liquid/water1_blood.tga
  73.         depthwrite
  74.         blendfunc gl_zero gl_src_color            
  75.         tcMod turb 0.0 0.4 0.5 0.3
  76.         tcMod scroll 0 -1.3        
  77.     }
  78.     {        
  79.             map models/fx/wfall/wfall_blood.tga
  80.         //blendfunc gl_zero gl_src_color
  81.         //blendfunc add
  82.         blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
  83.         tcMod scale 0.198 0.25
  84.         tcMod turb 0.0 0.08 0.3 0.25
  85.         tcMod scroll 0.0000 -0.900000
  86.     }
  87. }
  88.  
  89.  
  90. textures/liquid/bw_water
  91. {
  92.     cull disable
  93. //    deformVertexes wave 512 sin 0.000000 4.000000 0.000000 0.3
  94.     deformVertexes wavenormal 512 0.04 0.03 0 sin 0 1 0 .3
  95.     tessSize 128
  96.     surfaceparm nonsolid    
  97.     surfaceparm trans
  98.     q3map_globaltexture
  99.     surfaceparm water
  100.     surfaceparm nolightmap
  101.     qer_editorimage textures/testliq/bw_top.tga
  102.     qer_trans 0.500000
  103.     {         
  104.         map textures/testliq/bw1.tga
  105.         depthwrite        
  106.         blendfunc gl_zero gl_src_color        
  107.         tcMod turb 0.000000 0.40000 0.000000 0.060000        
  108.         tcMod scale .6 .6
  109.     }
  110.     {
  111.         map textures/effects/chessw.tga        
  112.         alphagen dot .5 0        
  113.         blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA        
  114.         tcMod scale 2 2
  115.         tcGen environment
  116.     }
  117. }
  118.  
  119. textures/liquid/chess_red
  120. {
  121.     cull disable
  122. //    deformVertexes wave 512 sin 0.000000 4.000000 0.000000 0.3
  123.     deformVertexes wavenormal 512 0.04 0.03 0 sin 0 1 0 .3
  124.     tessSize 128
  125.     surfaceparm nonsolid    
  126.     surfaceparm trans
  127.     q3map_globaltexture
  128.     surfaceparm water
  129.     surfaceparm nolightmap
  130.     qer_editorimage textures/testliq/bw_top.tga
  131.     qer_trans 0.500000
  132.     {         
  133.         map textures/common/darkred.tga
  134.         depthwrite        
  135.         blendfunc gl_zero gl_src_color        
  136.         tcMod turb 0.000000 0.40000 0.000000 0.060000        
  137.         tcMod scale .6 .6
  138.     }
  139.     {
  140.         map textures/effects/chessw.tga        
  141.         alphagen dot .5 0        
  142.         blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA        
  143.         tcMod scale 2 2
  144.         tcGen environment
  145.     }
  146. }
  147.  
  148. //ChrisC - adjusted so tessalation is at a minimum for low-poly water
  149. textures/liquid/testwater2
  150. {
  151.     cull disable    
  152.     deformVertexes wavenormal 512 0.04 0.03 0 sin 0 1 0 .3    
  153.     tessSize 128
  154.     surfaceparm nonsolid
  155.     surfaceparm trans
  156.     q3map_globaltexture
  157.     surfaceparm water
  158.     surfaceparm nolightmap
  159.     qer_editorimage textures/liquid/wtr_test2.tga
  160.     qer_trans 0.500000
  161.     {         
  162.         map textures/testliq/1.tga
  163.         //blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
  164.         blendfunc gl_zero gl_src_color    
  165.         tcMod turb 0.000000 0.40000 0.000000 0.060000        
  166.         depthwrite
  167.         tcMod scale .2 .2
  168.         tcmod scroll .02 .02
  169.     }
  170.     {
  171.         map textures/effects/garden.tga        
  172.         alphagen dot .5 0        
  173.         blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA        
  174.         tcMod scale 2 2
  175.         tcGen environment
  176.     }
  177. }
  178.  
  179. //good water for ending cinematics
  180. textures/common/blue
  181. {
  182.     cull disable
  183. //    deformVertexes wave 512 sin 0.000000 3.000000 0.000000 0.3
  184.     deformVertexes wavenormal 512 0.04 0.03 0 sin 0 1 0 .3
  185.     tessSize 128
  186.     surfaceparm nonsolid
  187.     surfaceparm trans
  188.     q3map_globaltexture
  189.     surfaceparm water
  190.     surfaceparm nolightmap    
  191.     qer_editorimage textures/common/blue.tga
  192.     qer_trans 0.500000
  193.     {
  194.         map textures/common/blue.tga
  195.         blendfunc gl_zero gl_src_color
  196.         depthwrite
  197.     }    
  198. }
  199.  
  200. textures/liquid/tower2
  201. {
  202.     cull disable    
  203.     deformVertexes wavenormal 512 0.04 0.03 0 sin 0 1 0 .3    
  204.     //tessSize 512
  205.     surfaceparm nonsolid
  206.     surfaceparm trans
  207.     q3map_globaltexture
  208.     surfaceparm water
  209.     surfaceparm nolightmap
  210.     qer_editorimage textures/liquid/wtr_test2.tga
  211.     qer_trans 0.500000    
  212.     {
  213.           //map textures/testliq/1.tga
  214.         animmap 12 textures/testliq/1.tga textures/testliq/2.tga textures/testliq/3.tga textures/testliq/4.tga textures/testliq/5.TGA /textures/testliq/4.TGA textures/testliq/3.TGA textures/testliq/2.TGA
  215.         blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
  216.         alphaGen dot .9 .5
  217.         // blendFunc GL_SRC_ALPHA GL_ONE
  218.         tcMod turb 0.000000 0.400000 0.500000 0.0400000
  219.         tcMod scale .4 .4
  220.     }
  221.     {
  222.         map textures/testliq/top3.tga
  223.         //blendFunc gl_dst_color gl_zero
  224.         blendfunc gl_zero gl_src_color
  225.         tcMod turb 0 1 0 .08
  226.         tcMod scale .05 .05
  227.     }
  228. }
  229.  
  230. textures/liquid/hedge
  231. {
  232.     cull disable    
  233.     deformVertexes wavenormal 256 0.01 0.01 0 sin 0 1 0 .6    
  234.     tessSize 64
  235.     surfaceparm nonsolid
  236.     surfaceparm trans
  237.     q3map_globaltexture
  238.     surfaceparm water
  239.     surfaceparm nolightmap
  240.     qer_editorimage textures/liquid/wtr_test2.tga
  241.     qer_trans 0.500000
  242.     {         
  243.         map textures/testliq/1.tga
  244.         //blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
  245.         blendfunc gl_dst_color gl_src_color
  246.         tcMod turb 0.000000 0.40000 0.000000 0.060000        
  247.         depthwrite
  248.         tcMod scale .2 .2
  249.         tcmod scroll .02 .02
  250.     }
  251.     {
  252.         map textures\effects\hedge.tga
  253.         alphagen dot .5 0        
  254.         blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA        
  255.         tcMod scale 3 3
  256.         tcGen environment
  257.     }
  258. }
  259.